package com.sikao.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by y50 on 2016/4/15.
 */
public class MyMailBean {


	/**
	 * status : 1
	 * msg : 成功找到相应记录
	 * res : {"count":"2","thisPage":"1","allPage":1,"list":[{"id":"4","content_id":"2","from_uid":"165","to_uid":"142","create_time":"1475497058","is_read":"1","last_toast":"0","is_del":"0","status":"1","fromName":"李全春","toName":"18563854820","ctime":"10月03日 20:17","title":"标题","content":"内容cccc"},{"id":"2","content_id":"2","from_uid":"165","to_uid":"143","create_time":"1475496422","is_read":"0","last_toast":"0","is_del":"0","status":"1","fromName":"李全春","toName":"18563854821","ctime":"10月03日 20:07","title":"标题","content":"内容cccc"}]}
	 */

	private String status;
	private String msg;
	/**
	 * count : 2
	 * thisPage : 1
	 * allPage : 1
	 * list : [{"id":"4","content_id":"2","from_uid":"165","to_uid":"142","create_time":"1475497058","is_read":"1","last_toast":"0","is_del":"0","status":"1","fromName":"李全春","toName":"18563854820","ctime":"10月03日 20:17","title":"标题","content":"内容cccc"},{"id":"2","content_id":"2","from_uid":"165","to_uid":"143","create_time":"1475496422","is_read":"0","last_toast":"0","is_del":"0","status":"1","fromName":"李全春","toName":"18563854821","ctime":"10月03日 20:07","title":"标题","content":"内容cccc"}]
	 */

	private ResBean res;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public ResBean getRes() {
		return res;
	}

	public void setRes(ResBean res) {
		this.res = res;
	}

	public static class ResBean {
		private String count;
		private String thisPage;
		private int allPage;
		/**
		 * id : 4
		 * content_id : 2
		 * from_uid : 165
		 * to_uid : 142
		 * create_time : 1475497058
		 * is_read : 1
		 * last_toast : 0
		 * is_del : 0
		 * status : 1
		 * fromName : 李全春
		 * toName : 18563854820
		 * ctime : 10月03日 20:17
		 * title : 标题
		 * content : 内容cccc
		 */

		private List<ListBean> list;

		public String getCount() {
			return count;
		}

		public void setCount(String count) {
			this.count = count;
		}

		public String getThisPage() {
			return thisPage;
		}

		public void setThisPage(String thisPage) {
			this.thisPage = thisPage;
		}

		public int getAllPage() {
			return allPage;
		}

		public void setAllPage(int allPage) {
			this.allPage = allPage;
		}

		public List<ListBean> getList() {
			return list;
		}

		public void setList(List<ListBean> list) {
			this.list = list;
		}

		public static class ListBean implements Parcelable {
			private String id;
			private String content_id;
			private String from_uid;
			private String to_uid;
			private String create_time;
			private String is_read;
			private String last_toast;
			private String is_del;
			private String status;
			private String fromName;
			private String toName;
			private String ctime;
			private String title;
			private String content;

			public String getId() {
				return id;
			}

			public void setId(String id) {
				this.id = id;
			}

			public String getContent_id() {
				return content_id;
			}

			public void setContent_id(String content_id) {
				this.content_id = content_id;
			}

			public String getFrom_uid() {
				return from_uid;
			}

			public void setFrom_uid(String from_uid) {
				this.from_uid = from_uid;
			}

			public String getTo_uid() {
				return to_uid;
			}

			public void setTo_uid(String to_uid) {
				this.to_uid = to_uid;
			}

			public String getCreate_time() {
				return create_time;
			}

			public void setCreate_time(String create_time) {
				this.create_time = create_time;
			}

			public String getIs_read() {
				return is_read;
			}

			public void setIs_read(String is_read) {
				this.is_read = is_read;
			}

			public String getLast_toast() {
				return last_toast;
			}

			public void setLast_toast(String last_toast) {
				this.last_toast = last_toast;
			}

			public String getIs_del() {
				return is_del;
			}

			public void setIs_del(String is_del) {
				this.is_del = is_del;
			}

			public String getStatus() {
				return status;
			}

			public void setStatus(String status) {
				this.status = status;
			}

			public String getFromName() {
				return fromName;
			}

			public void setFromName(String fromName) {
				this.fromName = fromName;
			}

			public String getToName() {
				return toName;
			}

			public void setToName(String toName) {
				this.toName = toName;
			}

			public String getCtime() {
				return ctime;
			}

			public void setCtime(String ctime) {
				this.ctime = ctime;
			}

			public String getTitle() {
				return title;
			}

			public void setTitle(String title) {
				this.title = title;
			}

			public String getContent() {
				return content;
			}

			public void setContent(String content) {
				this.content = content;
			}

			@Override
			public int describeContents() {
				return 0;
			}

			@Override
			public void writeToParcel(Parcel dest, int flags) {
				dest.writeString(this.id);
				dest.writeString(this.content_id);
				dest.writeString(this.from_uid);
				dest.writeString(this.to_uid);
				dest.writeString(this.create_time);
				dest.writeString(this.is_read);
				dest.writeString(this.last_toast);
				dest.writeString(this.is_del);
				dest.writeString(this.status);
				dest.writeString(this.fromName);
				dest.writeString(this.toName);
				dest.writeString(this.ctime);
				dest.writeString(this.title);
				dest.writeString(this.content);
			}

			public ListBean() {
			}

			protected ListBean(Parcel in) {
				this.id = in.readString();
				this.content_id = in.readString();
				this.from_uid = in.readString();
				this.to_uid = in.readString();
				this.create_time = in.readString();
				this.is_read = in.readString();
				this.last_toast = in.readString();
				this.is_del = in.readString();
				this.status = in.readString();
				this.fromName = in.readString();
				this.toName = in.readString();
				this.ctime = in.readString();
				this.title = in.readString();
				this.content = in.readString();
			}

			public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
				@Override
				public ListBean createFromParcel(Parcel source) {
					return new ListBean(source);
				}

				@Override
				public ListBean[] newArray(int size) {
					return new ListBean[size];
				}
			};
		}
	}
}
